<template>
	<view>
		<!--顶部区域-->
		<view class="smart-panel-head">
			<view class="smart-panel-head-title">swiper 视图</view>
		</view>
		<!--主题-->
		<view class="smart-padding-wrap">
			<view>轮播图</view>
			<swiper circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
				:duration="duration" style="height: 350rpx;">
				<swiper-item>
					<view class="swiper-item smart-bg-red">A</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item smart-bg-orange">B</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item smart-bg-green">C</view>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

				indicatorDots: true,
				/*指示点*/
				autoplay: true,
				/*自动播放*/
				interval: 5000,
				/*停留时长*/
				duration: 500 /*切换间隔时长*/
			}
		},
		methods: {

		}
	}
</script>

<style>
	.swiper-item{
		display: block;
		height: 100%;
		width: 100%;
	}
</style>